package main

import "fmt"

func main() {
	//a := 10
	var p *int

	//p = &a

	// p是 *int， 指向 int类型
	p = new(int)
	*p = 666
	fmt.Println("*p = ", *p)
	b := *p

	b = 999
	fmt.Println("*p = ", *p)
	fmt.Println("b = ", b)

	fmt.Println("&b p", &b, p)

	q := new(int)
	*q = 123456
	fmt.Printf("*q = %d\n", *q)

}
